import request from "@/utils/request";

// 获取学生信息
export function studentInfo() {
  return request({
    url: "/school/student/mine/studentInfo",
    method: "get",
  });
}
// 评价接口
export function evaluate(data) {
  return request({
    url: `/school/student/courseStudyManager/evaluate`,
    method: "post",
    data: data,
  });
}
// 获取评价列表
export function evaluateCourseList(id, data) {
  return request({
    url: "/school/student/mineData/evaluateCourseList/" + id,
    method: "get",
    params: data,
  });
}
// 获取学期列表
export function semesterList(data) {
  return request({
    url: "/school/student/mineData/semesterList",
    method: "get",
    params: data,
  });
}
// 学习记录
export function getStudyRecord(query) {
  return request({
    url: `/school/student/mineData/studyRecord`,
    method: "get",
    params: query,
  });
}
// 查询配置列表-manager:evaluate:list
export function getStudentEvaluateList(params) {
  return request({
    url: "/school/manager/StudentEvaluate/list",
    method: "get",
    params: params,
  });
}
// 个人数据-雷达图
export function getRadarData(categoryId, data) {
  return request({
    url: `/school/student/mineData/radarData/${categoryId}`,
    method: "get",
    params: data,
  });
}
